package teste;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;

public class MyBean {
	
	@Autowired
	@Qualifier("myDependency") // useless in this case
    private Dependency myDependency;
    
    public void execute() {
    	myDependency.save("iouhib");
        System.out.println( "Retornei: "  );
        myDependency.update();
    }
}